<template>
  <FormItem label="默认值">
    <Switch v-model:checked="activeComp.defaultValue" />
  </FormItem>
  <FormItem label="是否禁用">
    <Switch v-model:checked="activeComp.__component__.disabled" />
  </FormItem>
</template>
<script lang="tsx" setup name="SwitchOption">
  import { toRefs } from 'vue';
  import { FormItem, Switch } from 'ant-design-vue';
  import { useFormStore } from '/@/store/modules/workFlow/form';
  const store = useFormStore();

  const { activeComp } = toRefs<any>(store);
</script>
<style lang="less" scoped></style>
